//公共参数

export const commonState = reactive({
  tableHeight: '',
  scrollHeight: 0,
  scrollWidth: 0,
  pageSize: 20,
  pageNumber: 1,
  pageSizes: [10, 20, 50, 100],
  layout: '->,total, sizes, prev, pager, next',
});


export function dynamicColor(status) {
  switch (status) {
    case true:
      return '#52c41a';
    case false:
      return '#1890ff';
    case 1:
      return '#52c41a';
    case 2:
      return '#ff4d4f';
    case 3:
      return '#52c41a';
    default:
      return '#1890ff';
  }
}